package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 会员表
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-Member")
@Data
@TableName(value = "`member`")
public class Member {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 第三方平台openid
     */
    @TableField(value = "openid")
    @ApiModelProperty(value="第三方平台openid")
    private String openid;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    @ApiModelProperty(value="昵称")
    private String nickname;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value="头像")
    private String avatar;

    /**
     * 账号，手机号
     */
    @TableField(value = "account")
    @ApiModelProperty(value="账号，手机号")
    private String account;

    /**
     * 余额
     */
    @TableField(value = "residual")
    @ApiModelProperty(value="余额")
    private BigDecimal residual;

    /**
     * 冻结余额
     */
    @TableField(value = "frozen_residual")
    @ApiModelProperty(value="冻结余额")
    private BigDecimal frozenResidual;

    /**
     * 密码
     */
    @TableField(value = "password")
    @ApiModelProperty(value="密码")
    private String password;

    /**
     * 积分
     */
    @TableField(value = "point")
    @ApiModelProperty(value="积分")
    private Integer point;

    /**
     * 等级
     */
    @TableField(value = "level")
    @ApiModelProperty(value="等级")
    private Byte level;

    /**
     * 来源平台
     */
    @TableField(value = "platform")
    @ApiModelProperty(value="来源平台")
    private String platform;

    /**
     * 渠道
     */
    @TableField(value = "channel")
    @ApiModelProperty(value="渠道")
    private String channel;

    /**
     * 状态,-1禁用,1正常, 2禁止发帖
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态,-1禁用,1正常, 2禁止发帖")
    private Byte status;

    /**
     * 是否删除，1删除，0正常
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1删除，0正常")
    private Byte isDeleted;

    /**
     * 最后一次登录ip
     */
    @TableField(value = "ip")
    @ApiModelProperty(value="最后一次登录ip")
    private String ip;

    /**
     * 登录次数
     */
    @TableField(value = "count")
    @ApiModelProperty(value="登录次数")
    private Integer count;

    /**
     * 所属角色
0 游客
11 导游
     */
    @TableField(value = "role_id")
    @ApiModelProperty(value="所属角色,0 游客,11 导游")
    private Byte roleId;

    /**
     * 邀请人id
     */
    @TableField(value = "invite_id")
    @ApiModelProperty(value="邀请人id")
    private Long inviteId;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    /**
     * 最后一次登录时间
     */
    @TableField(value = "gmt_login")
    @ApiModelProperty(value="最后一次登录时间")
    private Date gmtLogin;

    /**
     * 是否购买商品
1.购买
2.未购买
     */
    @TableField(value = "is_buy")
    @ApiModelProperty(value="是否购买商品,1.购买,2.未购买")
    private Byte isBuy;

    public static final String COL_ID = "id";

    public static final String COL_OPENID = "openid";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_AVATAR = "avatar";

    public static final String COL_ACCOUNT = "account";

    public static final String COL_RESIDUAL = "residual";

    public static final String COL_FROZEN_RESIDUAL = "frozen_residual";

    public static final String COL_PASSWORD = "password";

    public static final String COL_POINT = "point";

    public static final String COL_LEVEL = "level";

    public static final String COL_PLATFORM = "platform";

    public static final String COL_CHANNEL = "channel";

    public static final String COL_STATUS = "status";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_IP = "ip";

    public static final String COL_COUNT = "count";

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_INVITE_ID = "invite_id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_GMT_LOGIN = "gmt_login";

    public static final String COL_IS_BUY = "is_buy";
}